package com.bk.pojo;

import java.util.Date;

public class User {
    private Integer userId;

    private String username;

    private String password;

    private String telphone;

    private String email;

    private String answer;

    private String question;

    private Integer role;

    private Date creattime;

    private Date updatetime;

    public User(Integer userId, String username, String password, String telphone, String email, String answer, String question, Integer role, Date creattime, Date updatetime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.telphone = telphone;
        this.email = email;
        this.answer = answer;
        this.question = question;
        this.role = role;
        this.creattime = creattime;
        this.updatetime = updatetime;
    }

    public User() {
        super();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone == null ? null : telphone.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question == null ? null : question.trim();
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
}